package com.ych.modules.base.service;

import com.baomidou.mybatisplus.service.IService;
import com.ych.modules.base.dbEntity.RSysRoleMenuEntity;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/15
 * Time: 15:20
 * Description:
 */
public interface IRSysRoleMenuService extends IService<RSysRoleMenuEntity> {
    /**
     * 根据角色ID，获取菜单ID列表
     */
    List<String> queryMenuIdList(String roleId);

    /**
     * 根据角色ID数组，批量删除
     */
    int deleteBatch(String[] roleIds);

    void saveOrUpdate(String roleId, List<String> menuIdList);
}
